package com.ruoyi.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.CommonDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_usertree")
@ApiModel(value = "Usertree对象", description = "用户关系树")
public class Usertree extends CommonDomain {
    @ApiModelProperty(value = "上级用户id")
    private Long memberId;

    @ApiModelProperty(value = "下级用户id")
    private Long parentId;

    @ApiModelProperty(value = "深度")
    private Integer dist;

}